from django.db import models
from django.contrib.auth.models import User

# Create your models here.

class Grupo(models.Model):
    def __unicode__(self):
        return self.nombre
    
    nombre = models.CharField(max_length=25)
    administrador = models.ForeignKey(User, related_name='grupos_administrados')
    miembros = models.ManyToManyField(User, related_name='grupos')
    #es_privado = models.BooleanField()
